package com.cuixichang.minimalism.domain;

import com.cuixichang.minimalism.core.security.userdetails.CredentialDetail;

import java.util.Map;

public interface IFormValueCommandService {


    String getValue(String systemCode, String moduleName, String plugName, String groupId);

    /**
     * 获取表单值
     * @param systemCode
     * @param moduleName
     * @param groupId
     * @return
     */
    Map<String, Object> getFormValue(String systemCode, String moduleName, String groupId);

    /**
     * 获取表单预览值
     * @param systemCode
     * @param moduleName
     * @param groupId
     * @return
     */
    Map<String, Object> getFormPreviewValue(String systemCode, String moduleName, String groupId);

    /**
     * 存入表单值
     * @param systemCode
     * @param moduleName
     * @param groupId
     * @return
     */
    Map<String, String> setFormValue(String systemCode, String moduleName, String groupId, Map<String, Object> formValue, CredentialDetail credentialDetail);
}
